package com.mentaleye.dal.service;

import com.mentaleye.dal.model.Prompt;
import com.mentaleye.dal.model.PromptExample;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

public interface PromptMapper {
	/**
	 * 查询各种提醒类型的未读个数
	 * @param map
	 * @return
	 */
	List<Map<String, Object>> selectCountByMap(Map<String, Object> map);
	/**
	 * map查询提醒
	 * @param map
	 * @return
	 */
	List<Map<String, Object>> selectByMap(Map<String, Object> map);
    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table prompt
     *
     * @mbggenerated
     */
    int countByExample(PromptExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table prompt
     *
     * @mbggenerated
     */
    int deleteByExample(PromptExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table prompt
     *
     * @mbggenerated
     */
    int deleteByPrimaryKey(Integer promptId);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table prompt
     *
     * @mbggenerated
     */
    int insert(Prompt record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table prompt
     *
     * @mbggenerated
     */
    int insertSelective(Prompt record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table prompt
     *
     * @mbggenerated
     */
    List<Prompt> selectByExample(PromptExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table prompt
     *
     * @mbggenerated
     */
    Prompt selectByPrimaryKey(Integer promptId);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table prompt
     *
     * @mbggenerated
     */
    int updateByExampleSelective(@Param("record") Prompt record, @Param("example") PromptExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table prompt
     *
     * @mbggenerated
     */
    int updateByExample(@Param("record") Prompt record, @Param("example") PromptExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table prompt
     *
     * @mbggenerated
     */
    int updateByPrimaryKeySelective(Prompt record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table prompt
     *
     * @mbggenerated
     */
    int updateByPrimaryKey(Prompt record);
}